import request from '@/axios/request';

enum Api {
    GETASSIGN_API = '/assign_slot/getassign',
    GETLOCTION_API = '/assign_slot/getLocation',
    ALLOT_LOCTION_API = '/assign_slot/allot_loction',
    UPDATE_API = '/assign_slot/update_loction',
    
}

// 获取数据
export function getassignData(data:any) {
    return request.post(Api.GETASSIGN_API,data);
}

// 获取位置
export function getLocationData() {
    return request.get(Api.GETLOCTION_API);
}

// 分配位置
export function allotLocationData(data:any) {
    return request.post(Api.ALLOT_LOCTION_API, data);
}

// 更新位置
export function updateLocationData(data:any) {
    return request.post(Api.UPDATE_API, data);
}